unit udlgGameParams;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, uBaseDialog, ExtCtrls, StdCtrls, Buttons;

type
  TdlgGameParams = class(TBaseDialog)
    lbl1: TLabel;
    lbl2: TLabel;
    lbl3: TLabel;
    lbl4: TLabel;
    lbl5: TLabel;
    lbl6: TLabel;
    lbl7: TLabel;
    lbl8: TLabel;
    lbl9: TLabel;
    edtTestSingle: TEdit;
    edtTestMore: TEdit;
    edtTestTime: TEdit;
    chkBrowseRandom: TCheckBox;
    chkBrowseAutoResult: TCheckBox;
    chkBrowseResultSlowOut: TCheckBox;
    edtBrowseSlowTime: TEdit;
    btnOK: TBitBtn;
    btnCancel: TBitBtn;
    shp1: TShape;
    procedure edtTestSingleKeyPress(Sender: TObject; var Key: Char);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  dlgGameParams: TdlgGameParams;

implementation

{$R *.dfm}

procedure TdlgGameParams.edtTestSingleKeyPress(Sender: TObject; var Key: Char);
begin
  if not (Word(Key) in [48..57,VK_DELETE, VK_LEFT, VK_RIGHT, VK_HOME, VK_END, VK_BACK]) then
    Key := #0;
end;

end.
